package com.frp.protocol;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * FRP协议消息基类
 */
public class Message {
    @JsonProperty("type")
    private MessageType type;
    
    public Message() {}
    
    public Message(MessageType type) {
        this.type = type;
    }
    
    public MessageType getType() {
        return type;
    }
    
    public void setType(MessageType type) {
        this.type = type;
    }
    
    @Override
    public String toString() {
        return "Message{type=" + type + "}";
    }
}